//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    //顶部轮播图
    imgUrls: [{
        id: 'to_001',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/一人之下/一人之下.gif'
      }, {
        id: 'to_003',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/白蛇/白蛇_002.jpg'
      }, {
        id: 'to_002',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/刺客伍六七/伍六七_01.jpg'
      }, {
        id: 'to_004',
        url: 'cloud://wqz-001-8vh1j.7771-wqz-001-8vh1j-1301063888/other/百妖谱.jpg'
      }

    ],
    indicatorDots: true, //显示面板显示点
    autoplay: true, //自动切换
    interval: 2000, //切换时间
    duration: 1000 ,//动画时长
    circular: true ,//圆
    autoRun:true,
  },
  to_001: function (e) {
    wx.navigateTo({
      url: '../Anime/001/001'
    })
  },
  to_002: function (e) {
    wx.navigateTo({
      url: '../Anime/002/002'
    })
  },
  to_003: function (e) {
    wx.navigateTo({
      url: '../Anime/003/003'
    })
  },
  to_004: function (e) {
    wx.navigateTo({
      url: '../Anime/004/004'
    })
  },

  btn1:function (e) {
    wx.navigateTo({
      url: '../Anime/anime'
    })
  },

})